package com.jprocms.module.cms.controller.admin.content.vo;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.OffsetDateTime;
import java.util.Date;

import static com.jpro.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 内容 Excel 导出 Request VO")
@Data
public class ContentExportReqVO {

    @Schema(description = "站点ID")
    private Long siteId;

    @Schema(description = "栏目ID")
    private Long channelId;

    @Schema(description = "内容状态(1:已发布;   2:流转中;   3:待发布;  4:退回;  5:下线  6:草稿;   7 删除 ")
    private Integer status;

    @Schema(description = "内容标题")
    private String title;

    @Schema(description = "发布时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private OffsetDateTime[] releaseTime;

    @Schema(description = "置顶级别")
    private Integer topLevel;

    @Schema(description = "原文ID")
    private Long originContentId;

    @Schema(description = "创建方式（1:直接创建    2:投稿  3:手动引用  4:主动采集   5:复制  ")
    private Short createMode;

    @Schema(description = "部门id")
    private Long deptId;

    @Schema(description = "创建人ID")
    private Long userId;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Date[] createTime;

}
